import Avatar from './Avatar';
import AvatarGroup from './AvatarGroup';
import './styles/index.less';

type TAvatarType = typeof Avatar;
type CompoundedComponent = TAvatarType & {
  Group: typeof AvatarGroup;
};

const YmAvatar = Avatar as CompoundedComponent;
YmAvatar.Group = AvatarGroup;

export type { YmAvatarGroupProps, YmAvatarProps } from './interface';
export { YmAvatar };
